package com.jry.common.mybatis.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author ssm
 */
@Configuration
public class DruidConfiguration {

    /**
     * 设置验证空闲连接不使用mysql的ping方法
     */
    @PostConstruct
    public void setProperties() {
        System.setProperty("druid.mysql.usePingMethod", "false");
    }

}
